/*
 * @Descripttion: 
 * @version: 
 * @Author: kk
 * @Date: 2020-10-23 20:23:13
 * @LastEditors: kk
 * @LastEditTime: 2020-10-23 21:23:13
 */
import request from '@/utils/request'

export default{

    //获取分页商品列表
    getKillList(page,limit,itemQuery){
        return request(
            {
                url:`/itemKill/getKillList/${page}/${limit}`,
                method: 'post',
                data: itemQuery
            }
        )
    },
    //删除商品
    removeItemKill(id){
        return request({
            url: `/itemKill/removeItemKill/${id}`,
            method:'post'
        })
    },
    //获取对应商品
    getItemKill(id){
        return request({
            url: `/itemKill/getItemKill/${id}`,
            method: 'get'
        })
    },
    //添加商品
    addItemKill(itemKill){
        return request({
            url: `/itemKill/addItemKill`,
            method: 'post',
            data: itemKill
        })
    },
    //修改商品
    updateItemKill(itemKill){
        return request({
            url: `/itemKill/updateItemKill`,
            method: 'post',
            data: itemKill
        })
    },

}